<?php

namespace app\api\model;

use think\Model;

class UserAddress extends BaseModel
{

    protected static function init()
    {
        parent::init();
        self::beforeUpdate(function($data) {
            $data['updatetime'] = time();
            return true;
        });
    }

    protected $autoWriteTimestamp = true;
    protected $hidden = [
        'delete_time',
        'update_time',
        'user_id',
    ];

}
